package com.wangyang.stock.po;

import java.util.HashSet;
import java.util.Set;

/**
 * Operator entity. @author MyEclipse Persistence Tools
 */

public class Operator implements java.io.Serializable {

	// Fields

	private Integer operatorId;
	private Employee employee;
	private Role role;
	private Integer operatorCid;
	private String operatorName;
	private String operatorPass;
	private Set invoices = new HashSet(0);

	// Constructors

	/** default constructor */
	public Operator() {
	}

	/** full constructor */
	public Operator(Employee employee, Role role, Integer operatorCid,
			String operatorName, String operatorPass, Set invoices) {
		this.employee = employee;
		this.role = role;
		this.operatorCid = operatorCid;
		this.operatorName = operatorName;
		this.operatorPass = operatorPass;
		this.invoices = invoices;
	}

	// Property accessors

	public Integer getOperatorId() {
		return this.operatorId;
	}

	public void setOperatorId(Integer operatorId) {
		this.operatorId = operatorId;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Integer getOperatorCid() {
		return this.operatorCid;
	}

	public void setOperatorCid(Integer operatorCid) {
		this.operatorCid = operatorCid;
	}

	public String getOperatorName() {
		return this.operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public String getOperatorPass() {
		return this.operatorPass;
	}

	public void setOperatorPass(String operatorPass) {
		this.operatorPass = operatorPass;
	}

	public Set getInvoices() {
		return this.invoices;
	}

	public void setInvoices(Set invoices) {
		this.invoices = invoices;
	}

}